package comfour;

import comfour.util.BaseJdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;

public class Demo4 {
    public static void main(String[] args) throws Exception {
        String sql="delete  from student where studentNo=?";
        Object[] objects = new Object[1];
        objects[0]=1023;
        int i = BaseJdbc.BaseUpdate(sql,objects);
        if(i>0){
            System.out.println("删除成功");
        }
    }
}
